package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author lqg
 * @since 2022-10-12
 */
@Getter
@Setter
@TableName("t_road")
@ApiModel(value = "Road对象")
public class Road implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("路段表 主键 自增")
      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("路段名称")
      private String name;

      @ApiModelProperty("路段类型(0:全体收费 1:分时段收费 2:分时段禁停收费)")
      private String type;

      @ApiModelProperty("所属地区")
      private String area;

      @ApiModelProperty("限制泊位数")
      private Integer limitedSpaceNum;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
